<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <link rel="stylesheet" href="./lib/mui/css/mui.min.css">
    <link rel="stylesheet" href="./lib/fa/css/font-awesome.min.css">
    <link rel="stylesheet" href="./css/common.css">
    <link rel="stylesheet" href="./css/category.css">
</head>
<!-- layout：布局 -->
<div class="lt-layout">
    <!-- 头部 -->
    <header class="lt-header">
        <a href="./index.html" class="home"><i class="fa fa-home"></i></a>
        <h4>乐淘云购</h4>
        <a href="./search.html" class="search"><i class="fa fa-search"></i></a>
    </header>


    <!-- 主体 -->
    <section class="lt-main">
        <div class="mui-scroll-wrapper">
            <div class="mui-scroll">
                <div class="cate-aside mui-clearfix">
                    <ul>
                        <!-- li兄弟利用高亮排他  不用a-->
                        <!-- 模板渲染 -->
                    </ul>
                </div>
                <div class="cate-content">
                    <ul>
                        <li>
                            <a href="#">
                                <img src="./images/brand1.png" alt="">
                                <p>nike</p>
                            </a>
                        </li>
                        <li>
                            <a href="#">
                                <img src="./images/brand1.png" alt="">
                                <p>nike</p>
                            </a>
                        </li>
                        <li>
                            <a href="#">
                                <img src="./images/brand1.png" alt="">
                                <p>nike</p>
                            </a>
                        </li>
                    </ul>
                </div>
            </div>
        </div>
    </section>


    <!-- 底部 -->
    <footer class="lt-footer">
        <li>
        <li>
            <a href="./index.html">
                <i class="fa fa-home"></i>
                <p>首页</p>
            </a>
        </li>
        <li class="current">
            <a href="./category.html">
                <i class="fa fa-align-justify "></i>
                <p>分类页</p>
            </a>
        </li>
        <li>
            <a href="./cart.html">
                <i class="fa fa-shopping-cart "></i>
                <p>购物车</p>
            </a>
        </li>
        <li>
            <a href="./user.html">
                <i class="fa fa-user "></i>
                <p>用户中心</p>
            </a>
        </li>
        </li>
    </footer>
</div>

<body>
    <!-- 模板 渲染左侧一级分类  仔细看一下怎么填充class/data-id的-->
    <script type='text/html' id="tmp-one">
        {{each rows  v i}}
        <li class="{{ i==0 ? 'current' : '' }}"><a href="#" data-id={{ v.id }} >{{ v.categoryName }}</a></li>
        {{ /each}}
    </script>

    <!-- 模板  渲染右侧二级分类 -->
    <script type='text/html' id="tmp-two">
        {{ each rows v i }}
           <li>
                <a href="#">
                    <img src="{{ v.brandLogo }}" alt="">
                    <p>{{ v.brandName }}</p>
                </a>
            </li>
        {{ /each }}
    </script>
    <script src="./lib/zepto/zepto.min.js"></script>
    <script src="./lib/mui/js/mui.js"></script>
    <script src="./lib/artTemplate/template-web.js"></script>
    <script src="./js/common.js"></script>
    <script src="./js/category.js"></script>
</body>

</html>